<!--用户首页-->
<template>
    <f7-page style="background-color: #f4f5f5;" no-toolbar>
        <f7-navbar title="个人主页" back-link="Back"></f7-navbar>

        <f7-list class="margin-top" media-list>

            <f7-list-item mediaItem no-chevron style="line-height: 30px;"
                          link="/user/userHome/"
                          title="A-david大卫"
                          subtitle="积分：100">
                <img slot="media" src="https://cdn.framework7.io/placeholder/fashion-88x88-1.jpg" width="80" style="border-radius: 50%;"/>
                <f7-button slot="after" outline small>修改头像</f7-button>
            </f7-list-item>
        </f7-list>

<!--        <f7-list form class="margin-top">
            <f7-list-item title="我的粉丝" badge="5" badge-color="red" link="/user/fansList/">
                <img slot="media" src="https://cdn.framework7.io/placeholder/people-160x160-1.jpg" width="30"/>
            </f7-list-item>
            <f7-list-item title="我的关注" badge="5" badge-color="red" link="/user/fansList/">
                <img slot="media" src="https://cdn.framework7.io/placeholder/people-160x160-1.jpg" width="30"/>
            </f7-list-item>
            <f7-list-item title="收到的评价" badge="5" badge-color="red" link="/comment/receiveCommentList/">
                <img slot="media" src="https://cdn.framework7.io/placeholder/people-160x160-1.jpg" width="30"/>
            </f7-list-item>
            <f7-list-item title="我的收藏" badge="5" badge-color="red" link="/user/collectList/">
                <img slot="media" src="https://cdn.framework7.io/placeholder/people-160x160-1.jpg" width="30"/>
            </f7-list-item>
        </f7-list>-->

        <f7-list >
            <f7-list-item link="/user/photoUpload/" title="修改头像"></f7-list-item>
            <f7-list-item link="/user/photoUpload/" title="上传照片"></f7-list-item>
            <f7-list-item link="/user/userEdit/" title="个人资料编辑"></f7-list-item>
            <f7-list-item link="/comment/commentManager/" title="评价修改"></f7-list-item>
        </f7-list>

<!--        <f7-list form>
            <f7-list-item link="#" title="我加入的组织"></f7-list-item>
            <f7-list-item link="#" title="我提供的场地"></f7-list-item>
            <f7-list-item link="#" title="我的推广"></f7-list-item>
        </f7-list>-->


    </f7-page>
</template>

<script>
    import labelListEdit from '../../components/labelListEdit.vue';


    export default {
        components: {labelListEdit},
        data() {
            return {
                swiperParams: {
                    // speed: 500,
                    loop: true,
                    // height:600,
                    // autoplay: {
                    //   delay: 1500,
                    // },
                    direction: 'vertical'
                    // preventLinksPropagation: false   // 阻止点击事件冒泡
                },
            };
        },
        methods: {
            refresh(event, done) {
                setTimeout(() => {
                    // todo
                    done();
                }, 1000);
            },

        }
    }
</script>
